
from random import random

import random

target = random.randint(1, 100)

while True:
    num = eval(input('请输入1-100的数字：'))

    if num > target:
        print('大了')
    elif num < target:
        print('小了')
    else:
        print('恭喜你答对了！')
        break
